/* pages/login/forgetpassword/forgetpassword.wxss */
/**
 * 密码重置页面样式
 * 包含：进度条、表单输入、按钮状态、响应式布局
 */

.forget-password-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40rpx 60rpx;
  box-sizing: border-box;
}

/* 进度条样式 */
.progress-container {
  margin-bottom: 80rpx;
}

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40rpx 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-number {
  width: 60rpx;
  height: 60rpx;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28rpx;
  font-weight: bold;
  margin-bottom: 16rpx;
  transition: all 0.3s ease;
}

.step-text {
  font-size: 24rpx;
  color: #999;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background: #20b26b;
  color: #fff;
  transform: scale(1.1);
}

.progress-step.active .step-text {
  color: #20b26b;
  font-weight: bold;
}

.progress-line {
  width: 80rpx;
  height: 4rpx;
  background: #e0e0e0;
  margin: 0 20rpx;
  margin-top: -40rpx;
  transition: all 0.3s ease;
}

.progress-line.active {
  background: #20b26b;
}

/* 步骤内容样式 */
.step-content {
  background: #fff;
  border-radius: 24rpx;
  padding: 60rpx 40rpx;
  box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
  margin-bottom: 40rpx;
}

.step-header {
  text-align: center;
  margin-bottom: 60rpx;
}

.step-title {
  display: block;
  font-size: 48rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 16rpx;
}

.step-subtitle {
  display: block;
  font-size: 28rpx;
  color: #666;
  line-height: 1.5;
}

/* 表单样式 */
.form-container {
  width: 100%;
}

.input-group {
  margin-bottom: 40rpx;
}

.input-label {
  font-size: 28rpx;
  color: #333;
  margin-bottom: 16rpx;
  font-weight: 500;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  flex: 1;
  height: 88rpx;
  padding: 0 24rpx;
  border: 2rpx solid #e0e0e0;
  border-radius: 12rpx;
  font-size: 32rpx;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: #20b26b;
  background: #fff;
  box-shadow: 0 0 0 4rpx rgba(32, 178, 107, 0.1);
}

.form-input.valid {
  border-color: #20b26b;
  background: #fff;
}

.form-input.invalid {
  border-color: #ff4757;
  background: #fff;
}

.password-toggle {
  position: absolute;
  right: 24rpx;
  padding: 8rpx;
  cursor: pointer;
}

.toggle-icon {
  font-size: 32rpx;
  color: #666;
}

/* 验证码按钮 */
.code-btn {
  position: absolute;
  right: 8rpx;
  height: 64rpx;
  padding: 0 20rpx;
  background: #20b26b;
  color: #fff;
  border: none;
  border-radius: 8rpx;
  font-size: 24rpx;
  transition: all 0.3s ease;
}

.code-btn.disabled {
  background: #ccc;
  color: #999;
}

.code-btn.active {
  background: #20b26b;
}

/* 按钮样式 */
.primary-btn {
  width: 100%;
  height: 88rpx;
  background: #e0e0e0;
  color: #999;
  border: none;
  border-radius: 12rpx;
  font-size: 32rpx;
  font-weight: bold;
  margin-top: 40rpx;
  transition: all 0.3s ease;
}

.primary-btn.active {
  background: #20b26b;
  color: #fff;
  transform: translateY(-2rpx);
  box-shadow: 0 8rpx 24rpx rgba(32, 178, 107, 0.3);
}

.primary-btn.disabled {
  background: #e0e0e0;
  color: #999;
  transform: none;
  box-shadow: none;
}



.secondary-btn:active {
  background: #20b26b;
  color: #fff;
}

/* 错误信息 */
.error-message {
  color: #ff4757;
  font-size: 24rpx;
  margin-top: 16rpx;
  padding: 16rpx 24rpx;
  background: #ffe6e6;
  border-radius: 8rpx;
  border-left: 4rpx solid #ff4757;
}

/* 成功页面样式 */
.success-content {
  text-align: center;
  padding: 80rpx 40rpx;
}

.success-icon {
  font-size: 120rpx;
  margin-bottom: 40rpx;
}

.success-title {
  font-size: 48rpx;
  font-weight: bold;
  color: #20b26b;
  margin-bottom: 16rpx;
}

.success-subtitle {
  font-size: 28rpx;
  color: #666;
  margin-bottom: 60rpx;
  line-height: 1.5;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 24rpx;
}

/* 底部提示 */
.footer-tips {
  text-align: center;
  margin-top: 40rpx;
}

.tip-text {
  font-size: 24rpx;
  color: rgba(255, 255, 255, 0.8);
  margin-right: 16rpx;
}

.tip-link {
  font-size: 24rpx;
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}

/* 响应式适配 */
@media (max-width: 750rpx) {
  .forget-password-container {
    padding: 30rpx 40rpx;
  }
  
  .step-content {
    padding: 40rpx 30rpx;
  }
  
  .step-title {
    font-size: 40rpx;
  }
  
  .form-input {
    height: 80rpx;
    font-size: 28rpx;
  }
  
  .primary-btn {
    height: 80rpx;
    font-size: 28rpx;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30rpx);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-content {
  animation: fadeInUp 0.5s ease-out;
}

/* 加载状态 */
.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 输入框聚焦效果 */
.form-input:focus {
  outline: none;
}

/* 按钮点击效果 */
.primary-btn.active:active {
  transform: translateY(0);
  box-shadow: 0 4rpx 16rpx rgba(32, 178, 107, 0.3);
}